package com.study.cloud.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author：lk
 * @Date：2023/6/30 15:00
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CommonResult<T> {
    /**
     * 返回状态码
     */
    private Integer code;
    /**
     * 返回是否调用成功
     */
    private String message;
    /**
     * 返回的数据
     */
    private T data;

    public CommonResult(Integer code, String message) {
        this(code, message, null);
    }

}

